package org.dromara.manu.domain.bo;

import org.dromara.manu.domain.ManuChangeMasterTrial;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 变更主数据trial业务对象 manu_change_master_trial
 *
 * @author Bin Liu
 * @date 2024-11-01
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = ManuChangeMasterTrial.class, reverseConvertGenerate = false)
public class ManuChangeMasterTrialBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 描述
     */
    @NotBlank(message = "描述不能为空", groups = { AddGroup.class, EditGroup.class })
    private String description;

    /**
     * 类别
     */
    @NotBlank(message = "类别不能为空", groups = { AddGroup.class, EditGroup.class })
    private String category;

    /**
     * 第一台工单编码
     */
    @NotBlank(message = "第一台工单编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String firstOrderCode;

    /**
     * 第一台工单日期
     */
    @NotNull(message = "第一台工单日期不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date firstDate;

    /**
     * 第一台工单序列号
     */
    @NotBlank(message = "第一台工单序列号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String firstSn;

    /**
     * 结束日期
     */
    @NotNull(message = "结束日期不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date endDate;


}
